package com.example.lvsuo.controller;


import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.ICwInoutTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/cwInoutType")
public class CwInoutTypeController {
@Autowired
    ICwInoutTypeService  iCwInoutTypeService;
    //递归出来所有的类别
 @GetMapping
    public Result Getlists(){
     return   Result.back(iCwInoutTypeService.Getlists());
 }

 //只递归出来收入的类型
    @GetMapping("/mo")
    public Result Getlistsmo(   ){
        return   Result.back(iCwInoutTypeService.Getlistsmo());
    }
}

